//CONVERTED...UNTESTED

public class NullifyDamage : Buff{ //Reduces the damage taken by the magnitude (as a percentage)

	public NullifyDamage(int magnitude, int duration){
		this.magnitude = magnitude;
		this.duration = duration;
		this.debuff = true;
	}
	
	public void execute(Card card){
		for(int i=0; i<card.getActives().Count; i++){
			if((card.getActives())[i].type is EffectActive.AttackCommand || (card.getActives())[i].type is EffectActive.ChainCommand)
				(card.getActives())[i].magnitude = (int)((card.getActives())[i].magnitude * (this.magnitude/100.0));
		}
	}
}